<template>
	<view class="">
		<uv-collapse>
			<uv-collapse-item v-for="record in records" :title="record.question">
				<view><uv-parse :content="record.ask"></uv-parse></view>
			</uv-collapse-item>
		</uv-collapse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				records: []
			}
		},
		onLoad() {
			this.findByType();
		},
		methods: {

			findByType() {
				var that = this;
				uni.$uv.http.get('/faq/findByType', {
					params: {
						type: '2'
					}
				}).then(res => {
					that.records = res.data;
				});
			},

		}
	}
</script>

<style>

</style>